//Copyright 2010 Balazs Keri, Imre Keri
//
//This file is part of FireworksCreator.
//
//FireworksCreator is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//FireworksCreator is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with FireworksCreator.  If not, see <http://www.gnu.org/licenses/>.
//
#include "shooter.h"
//
namespace model
{
Shooter::Shooter(QObject *p_parent)
:
Identified(p_parent)
{
}
//
QString Shooter::get_name( )const
{
   return name ;
}
void Shooter::set_name(const QString &p_name)
{
   name=p_name;
}
double Shooter::get_start_time()const
{
   return get_start_time_impl();
}
void Shooter::store_data(QDataStream &p_stream)const
{
   store_data_impl(p_stream);
}
void Shooter::restore_data(RestoreStream &p_stream)
{
   restore_data_impl(p_stream);
}
void Shooter::store_data_impl(QDataStream &p_stream)const
{
   p_stream<<name;
}
void Shooter::restore_data_impl(RestoreStream &p_stream)
{
   p_stream>>name;
}
}
//
RestoreStream &operator>>(RestoreStream &p_stream,model::Shooter *&p_s)
{
   return Identified::restore_object(p_stream,p_s);
}
/*bool Identified::is_shooter() const
{
   return metaObject()->className()==model::Shooter::staticMetaObject.className();
}*/
